<meta charset="utf-8"/>
<?php
//追加文件,只需把只写(w)改为(a)

   $fp=fopen('file.text','a');
   $outputstring="my name is <strong>panying</strong>\r\n";
   fwrite($fp,$outputstring,strlen($outputstring));
   fclose($fp);



